<template>
  <div class="home-view">
    <router-view></router-view>
    <van-tabbar route class="home-foot">
      <van-tabbar-item to="/films" icon="home-o">电影</van-tabbar-item>
      <van-tabbar-item to="/cinemas" icon="video-o">影院</van-tabbar-item>
      <van-tabbar-item to="/video" icon="tv-o">视频</van-tabbar-item>
      <van-tabbar-item to="/center" icon="user-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
import { Tabbar, TabbarItem } from "vant";
export default {
  name: "HomeView",
  components: {
    [Tabbar.name]: Tabbar,
    [TabbarItem.name]: TabbarItem,
  },
};
</script>

<style scoped lang="scss">
.home-view {
  height: 100%;
  display: flex;
  flex-direction: column;
  .home-foot {
    box-shadow: 4px 0 12px #a4a4a4;
  }
}
</style>
